package cn.lili.modules.search.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author paulG
 * @since 2020/10/15
 **/
@Data
public class EsGoodsSearchDTO {

    @ApiModelProperty(value = "商品ID")
    private String goodsId;

    @ApiModelProperty(value = "关键字")
    private String keyword;

    @ApiModelProperty(value = "分类")
    private String categoryId;

    @ApiModelProperty(value = "品牌,可以多选 品牌Id@品牌Id@品牌Id")
    private String brandId;

    @ApiModelProperty("是否为推荐商品")
    private Boolean recommend;

    @ApiModelProperty(value = "价格", example = "10_30")
    private String price;

    @ApiModelProperty(value = "属性:参数名_参数值@参数名_参数值", example = "屏幕类型_LED@屏幕尺寸_15英寸")
    private String prop;

    @ApiModelProperty(value = "规格项列表")
    private List<String> nameIds;

    @ApiModelProperty(value = "卖家id，搜索店铺商品的时候使用")
    private String storeId;

    @ApiModelProperty(value = "商家分组id，搜索店铺商品的时候使用")
    private String storeCatId;

    @ApiModelProperty(hidden = true)
    private Map<String, List<String>> notShowCol = new HashMap<>();

    @ApiModelProperty("当前商品skuId,根据当前浏览的商品信息来给用户推荐可能喜欢的商品")
    private String currentGoodsId;

    /**
     * @see cn.lili.common.enums.PromotionTypeEnum
     */
    @ApiModelProperty("促销活动类型")
    private String promotionType;

    @ApiModelProperty(value = "促销活动id")
    private String promotionsId;
    /**
     * @see cn.lili.modules.goods.entity.enums.GoodsTypeEnum
     */
    @ApiModelProperty(value = "商品类型")
    private String goodsType;

    @ApiModelProperty("销售模式")
    private String salesModel;

    /**
     * @see cn.lili.modules.goods.entity.enums.GoodsTypeEnum
     */
    @ApiModelProperty(value = "除了当前商品类型之外")
    private String neGoodsType;

    @ApiModelProperty("除了销售模式当前销售模式之外")
    private String neSalesModel;

    @ApiModelProperty(value = "是否会员商品")
//    private Boolean isVipGoods = false;
    private Boolean isVipGoods;

    @ApiModelProperty(value = "是否全返商品")
    private Boolean isResultGoods;

    @ApiModelProperty(value = "是否演唱会门票")
    private Boolean isTicket;

    @ApiModelProperty(value = "是否套餐商品")
    private Boolean isMealGoods;

    @ApiModelProperty(value = "是否绿色积分卷抵扣")
    private Boolean isGreenSecurities;

    @ApiModelProperty("礼包id")
    private String packId;

    @ApiModelProperty("是否是礼包商品")
    private Boolean isPackGoods;

    @ApiModelProperty("是否是分销商品-绿色积分>0的商品")
    private Boolean isDistributionGoods;

    @ApiModelProperty("多选分类id,隔开")
    private String categoryIds;
    /**
     * 默认false查询普通商品
     *    true查询免税商品
     */
    @ApiModelProperty(value = "是否海关保税仓商品")
    private Boolean isFree = false;

    /**
     * 查询哪一种，类型的商品
     * 1.壹邦玖，2企叮咚，3盛创，4海关，5国酒华夏.
     */
    @ApiModelProperty(value = "查询商品类型")
    private Integer thirdPartyPlatformType;

    @ApiModelProperty("查询类型:1,热销商品 2,新品商品")
    private Integer queryType;

}
